home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
15
/
marylamb.zip
/
TUNES.H
< prev
Wrap
Text File
|
1986-03-06
|
3KB
|
78 lines
typedef int NOTES;
typedef NOTES FAR *LPTUNES;
#define OPENSOUND -1
#define CLOSESOUND -2
#define SETVOICEQUEUESIZE -3
#define SETVOICEACCENT -4
#define SETVOICEENVELOPE -5
#define SETSOUNDNOISE -6
#define SETVOICESOUND -7
#define STARTSOUND -8
#define STOPSOUND -9
#define WAITSOUNDSTATE -10
#define SYNCALLVOICES -11
#define COUNTVOICENOTES -12
#define GETTHRESHOLDEVENT -13
#define GETTHRESHOLDSTATUS -14
#define SETVOICETHRESHOLD -15
int FAR PASCAL OpenSound();
int FAR PASCAL CloseSound();
int FAR PASCAL SetVoiceQueueSize(int, int);
int FAR PASCAL SetVoiceNote(int, int, int, int);
int FAR PASCAL SetVoiceAccent(int, int, int, int, int);
int FAR PASCAL SetVoiceEnvelope(int, int, int);
int FAR PASCAL SetSoundNoise(int, int);
int FAR PASCAL SetVoiceSound(int, int, int);
int FAR PASCAL StartSound();
int FAR PASCAL StopSound();
int FAR PASCAL WaitSoundState(int);
int FAR PASCAL SyncAllVoices();
int FAR PASCAL CountVoiceNotes(int);
LPINT FAR PASCAL GetThresholdEvent();
int FAR PASCAL GetThresholdStatus();
int FAR PASCAL SetVoiceThreshold(int, int);
/* constants used to specify return condition for WaitSoundState */
#define QUEUEEMPTY 0
#define THRESHOLD 1
#define ALLTHRESHOLD 2
/* constants used to specify accent mode */
#define S_NORMAL 0
#define S_LEGATO 1
#define S_STACCATO 2
/* constants used to specify source in SetSoundNoise */
#define S_PERIOD512 0 /* freq = N/512 high pitch, less coarse hiss */
#define S_PERIOD1024 1 /* freq = N/1024 */
#define S_PERIOD2048 2 /* freq = N/2048 low pitch, more coarse hiss */
#define S_PERIODVOICE 3 /* source is frequency from voice channel (3) */
#define S_WHITE512 4 /* freq = N/512 high pitch, less coarse hiss */
#define S_WHITE1024 5 /* freq = N/1024 */
#define S_WHITE2048 6 /* freq = N/2048 low pitch, more coarse hiss */
#define S_WHITEVOICE 7 /* source is frequency from voice channel (3) */
#define S_SERDVNA -1 /* device not available */
#define S_SEROFM -2 /* out of memory */
#define S_SERMACT -3 /* music active */
#define S_SERQFUL -4 /* queue full */
#define S_SERBDNT -5 /* invalid note */
#define S_SERDLN -6 /* invalid note length */
#define S_SERDCC -7 /* invalid note count */
#define S_SERDTP -8 /* invalid tempo */
#define S_SERDVL -9 /* invalid volume */
#define S_SERDMD -10 /* invalid mode */
#define S_SERDSH -11 /* invalid shape */
#define S_SERDPT -12 /* invalid pitch */
#define S_SERDFQ -13 /* invalid frequency */
#define S_SERDDR -14 /* invalid duration */
#define S_SERDSR -15 /* invalid source */
#define S_SERDST -16 /* invalid state */